<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>

        <style>
       /*  div{color: red;}
        div{color:burlywood} */
        /* #elem{color: red;}
        /* .box{color: blueviolet;} */
        /* div{color: green;} 
        *{color: cornflowerblue ;}
        body{color: blue !important;} */
        /* div.box{color: brown;}
        .box{color: green;} */
      
        p{color: blue;}
          div,p{color: red;}
            </style>
        <!-- <link rel="stylesheet" href="./base.css"> -->

    </head>
    <body>
        <!-- <div>这是一个块</div> -->
        <!-- style优先级高于id  -->
        <!-- <div id="elem" style="color:blue">这是一个块</div> -->
        <!-- id优先级高于class -->
        <!-- <div id="elem" class="box">这是一个块</div> -->
        <!-- <div id="elem" style="color:blue">这是一个块</div> -->
        <!-- <div class="box">这是一个块</div> -->
        <p>这是一个段落</p>
    </body>
</html>